const proxy = require('http-proxy-middleware');
module.exports=(app)=>{
        app.use('/api',proxy.createProxyMiddleware({
               target:"http://localhost:1000",
               changeOrigin:true,
               pathRewrite:{
                       "^/api":"http://localhost:1000"
               } 
        }))
}